package com.woniuxy.entity.dto;

import com.woniuxy.entity.po.dic.Dictionary;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 * @BelongsProject: charging-management-platform
 * @BelongsPackage: com.woniuxy.entity.dto
 * @Author: Quan
 * @Date: 2025/3/31 10:19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DictionaryDTO {
	/**
	 * 主键
	 */
	private Long id;

	/**
	 * 类别标识名
	 */
	private String code;

	/**
	 * 各自类别下的类型id
	 */
	private Long typeKey;

	/**
	 * 类型名
	 */
	private String typeValue;

	public DictionaryDTO(Dictionary dictionary) {
		BeanUtils.copyProperties(dictionary, this);
	}
}
